<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
include './controller/SO_artistController.php';
$JO["updateartist"]= JO( array( "EN" => "Update Artist","VI"=>"Cập nhật thông tin ca sĩ") );

?>
<div style="margin-left: 0px;" class="bar_720i" >
    <div style="" class="title_720i">
        <h1 style="width:696px;" class="h1i">
            <?=$JO["updateartist"]?>
        </h1>
    </div>
    <div class="content720i">
        <table class="tbi" style="margin: 8px 0px 0px 8px;width: 696px;">
            <tr>
                <th  style="width: 40px">Key</th>
                <th style="width: 80px">Bugs</th>
                <th style="width: 200px">Name</th>
                <th style="width: 108px">Insert</th>
                <th style="width: 108px">Update</th>
                <th>#</th>
            </tr>
            <tr>
                <td class="pad0"><input type="text" id="txtsekey" name="txtsekey" class="input_texti" value="" style="width: 32px"/> </td>
                <td class="pad0"><input type="text" id="txtsebugs" name="txtsebugs" class="input_texti" value="" style="width: 72px"/></td>
                <td class="pad0"><input type="text" id="txtsename" name="txtsename" class="input_texti" value="" style="width: 192px"/></td>
                <td class="pad0"><input type="text" id="" name="" value="" class="input_texti" style="width: 100px"/></td>
                <td class="pad0"><input type="text" id="" name="" value="" class="input_texti" style="width: 100px"/></td>
                <td>Get</td>
            </tr>
        </table>
        <table class="tbi" style="margin: 8px 0px 0px 8px;width: 696px;">
            <?
            $artistdata=artistModule::getArtists(0,20);
            if($artistdata==null){
                echo "<tr><td colspan=6>Data is empty.</td></tr>";
            }else{
                foreach ($artistdata as $artistrow){
                    ?>
                    <tr>
                        <td style="width: 40px"><?=isset($artistrow["key"])?$artistrow["key"]:""?></td>
                        <td style="width: 80px"><?=isset($artistrow["key_bugs"])?$artistrow["key_bugs"]:""?></td>
                        <td style="width: 200px"><?=isset($artistrow["name"])?$artistrow["name"]:""?></td>
                        <td style="width: 120px"><?=isset($artistrow["insert"])?$artistrow["insert"]:""?></td>
                        <td style="width: 120px"><?=isset($artistrow["update"])?$artistrow["update"]:""?></td>
                        <td >Edit</td>
                    </tr>
                    <?
                }
            }

            ?>
        </table>
    </div>
</div>
